//
//  WKServerNode.m
//  TangSengDaoDaoiOS
//
//  Created by wangfei on 2025/8/20.
//  Copyright © 2025 WK. All rights reserved.
//

#import "WKServerNode.h"

@implementation WKServerNode

// 从字典初始化模型
+ (instancetype)nodeWithDict:(NSDictionary *)dict {
    WKServerNode *node = [WKServerNode new];
    node.ip = dict[@"url"] ?: @"";
    node.https = [dict[@"ssl"] boolValue];
    node.desc = dict[@"desc"] ?: @"未知节点";
    node.name = dict[@"name"] ?: @"主节点";
    return node;
}

@end
